home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
fish
/
701-725
/
714
/
xstat
/
xstat.doc
< prev
next >
Wrap
Text File
|
1995-03-18
|
12KB
|
398 lines
XStat V1.07 Documentation
=========================
IMPORT StdDisclaimer; (* in short: use it at your own risk *)
XStat was carefully tested, but there's certainly plenty of room for bugs.
XStat V1.07 is Freeware, non-commercial distribution is o.k. as long as
the following conditions are met:
* Source, executable and documentation must be distributed together
(XStat.mod, XStat, XStat.data, XStat.doc, XStat.dok and Make),
and these files must be intact (you're not allowed to make changes).
* Disk librarians: you may charge no more than the current price
of a single AmigaLibDisk from Fred Fish
XStat requires AmigaOS V37 or later (that's 2.04 or later).
Purpose
=======
XStat extracts statistic information from the Xferstat file created
by Andrew "Charly" Kopp's UUCiCo V1.15c (or later). The most important
information XStat offers to you is the phone cost for a certain number
of connects.
Installation
============
Copy the executable "XStat" to a dircetory in your "Path", preferably UUBIN:
There's only one more file that needs to be installed; it's called
"XStat.data", and should be copied to your UULIB: directory.
You'll have to edit XStat.data to complete the installation.
XStat.data
==========
XStat.data contains the phone cost on a "per host" basis, in the following
format:
XStat.data file header:
-----------------------
H XSTAT DATA
This header must be the first line of XStat.data
XStat.data comment line:
------------------------
# any comments you wish to add to XStat.data
You may add comment lines anywhere in your XStat.data file, except before
the file header.
XStat.data currency sign info:
------------------------------
S <currency sign>
Tells XStat the currency sign for your country. This line must come before
the first "N"-line. There can be only one "S"-line in your XStat.data file.
Examples:
# currency sign for the U.S.A.
S $
# currency sign for Germany
S DM
XStat.data host name info:
--------------------------
N <host name>
Starts a new connection cost data record. Must be followed by at least
one "C"-line. <host name> should be the name of a host you're directly
connected to, without any path or domain information.
Examples:
# my own newsfeed
N imart
# my alternate newsfeed
N cbmger
XStat.data connection time/cost info:
-------------------------------------
C <start time> <duration> <price>
Tells XStat that between <start time> and <start time of next C-line>
a connection will cost <price> per <duration>. "C"-lines must follow
a "N"-line. <duration> must be in seconds, <price> in the currency of
your choice.
The first "C"-line must be for "SU-00:00:00"!
Example:
N imart
C SU-00:00:00 120 0.23
C MO-08:00:00 60 0.23
C MO-18:00:00 120 0.23
From Sunday 0:00:00 to Monday 7:59:59, a connection between my
site and my newsfeed "imart" will cost 0.23DM/120sec.
Between Monday 8:00:00 and Monday 17:59:59, a connection between my site
and my newsfeed "imart" will cost 0.23DM/60sec.
With this short example, the connection cost for the rest of the
week (from Monday 18:00:00 to Saturday 23:59:59) would be 0.23DM/120sec.
Full length example for XStat.data:
-----------------------------------
- cut - cut - cut - cut - cut - cut - cut - cut - cut - cut - cut - cut - cut -
H XSTAT DATA
#==============================================================================
# XStat connection cost data file
#==============================================================================
#
#------------------------------------------------------------------------------
# currency sign for Germany; S must come before first N
#------------------------------------------------------------------------------
S DM
#
#------------------------------------------------------------------------------
# my own newsfeed, connection cost is 0.23/60sec (0.23/120sec night & weekend)
#------------------------------------------------------------------------------
N imart
C SU-00:00:00 120 0.23
C MO-08:00:00 60 0.23
C MO-18:00:00 120 0.23
C TU-08:00:00 60 0.23
C TU-18:00:00 120 0.23
C WE-08:00:00 60 0.23
C WE-18:00:00 120 0.23
C TH-08:00:00 60 0.23
C TH-18:00:00 120 0.23
C FR-08:00:00 60 0.23
C FR-18:00:00 120 0.23
#
#------------------------------------------------------------------------------
# cbmger, connection cost is 0.23/21sec (0.23/42sec night & weekend)
#------------------------------------------------------------------------------
N cbmger
C SU-00:00:00 42 0.23
C MO-08:00:00 21 0.23
C MO-18:00:00 42 0.23
C TU-08:00:00 21 0.23
C TU-18:00:00 42 0.23
C WE-08:00:00 21 0.23
C WE-18:00:00 42 0.23
C TH-08:00:00 21 0.23
C TH-18:00:00 42 0.23
C FR-08:00:00 21 0.23
C FR-18:00:00 42 0.23
#
- cut - cut - cut - cut - cut - cut - cut - cut - cut - cut - cut - cut - cut -
Usage
=====
XStat [?] [DATA name] [FILE name] [V | VERBOSE] [FD | FROMDATE date]
[TD | TODATE date] [NI | NOINCOM] [NO | NOOUTGO]
[H | HOSTNAME name] [M | MONTH shortdate]
You may also use the environment variable "XSTATARGS" to specify
parameters. This is very useful if you're using XStat from the
Workbench (XStat doesn't really support Workbench, that's why
there's no icon for it).
?
-
Displays a help message.
DATA name
---------
Tells XStat to read its connection cost data from file <name>.
<name> defaults to "UULIB:XStat.data".
FILE name
---------
Tells XStat to extract the statistic information from file <name>.
<name> defaults to "UUSPOOL:XferStat".
V | VERBOSE
-----------
Enables the "verbose" mode. When on, XStat displays short statistics
for every connect found in the Xferstat file. Defaults to "off".
Specify VERBOSE to turn verbose mode on.
FD | FROMDATE date
------------------
Tells XStat to ignore connects before <date>. <date> defaults to "01-JAN-78".
You may use any valid AmigaDOS date string, including things like
"TODAY" or "YESTERDAY". XStat will add a time string of "00:00:00" internally,
you may not do this yourself. Be careful, if you're using Workbench 2.1 (which
is [ought to be] currently available to registered developers only) you'll have
to use your locale date specifications, for example "HEUTE" instead of "TODAY"
if you're using the german locale.
TD | TODATE date
----------------
Tells XStat to ignore connects after <date>. <date> defaults to current
date/time. You may use any valid AmigaDOS date string, including things
like "TODAY" or "YESTERDAY" (with the same 2.1/locale limitations as FD).
XStat will add a time string of "23:59:59" internally, you may not do this
yourself.
M | MONTH shortdate
-------------------
Tells XStat to ignore FD and TD, and to compute the statistics for the
specified month instead. The month must be given in the format "MMM-YY",
without specifying the day. Example: "MONTH JUN-92" will compute the stats
for June 92. MONTH is inactive as default.
NI | NOINCOM
------------
Tells XStat to suppress evaluation of incoming calls; defaults to off.
Specify "NI" to suppress evaluation of incoming calls. Meaning of this
switch was inverted before version 1.04.
NO | NOOUTGO
------------
Tells XStat to suppress evaluation of outgoing calls; defaults to off.
Specify "NO" to suppress evaluation of outgoing calls. Meaning of this
switch was inverted before version 1.04.
Q | QUIET
---------
Tells XStat to suppress non-fatal error messages; defaults to off.
Specify QUIET to suppress non-fatal errors.
This is very handy for getting rid of those "(ignoring this one)" messages
for failed connects.
H | HOSTNAME
------------
Tells XStat to evaluate calls to host <name> only; defaults to all hosts.
Starting with V1.06, if <name> contains any valid AmigaDos pattern,
XStat will display subtotals for each host that matches these patterns.
Patterns are not case sensitive.
Example: XStat hostname (a|x)#?
will evaluate calls to all hosts that start with an "a" or "x",
and will display sub-totals for each of those hosts.
XStat's output
==============
Example:
> XStat V1.07
> © Copyright 1992 by Jürgen Weinelt
> XStat is Freeware - read the docs for details.
>
>
>
>
> Connection statistics for incoming calls:
> -----------------------------------------
>
> no connects recorded.
>
>
>
> Connection statistics for outgoing calls:
> -----------------------------------------
>
> connects 53
> online time 35421 sec ( 668 sec/connect)
> units 323 units ( 6.094 units/connect)
> cost 74.29 DM ( 1.402 DM/connect)
>
> brutto read 7493483 bytes ( 141386 bytes/connect)
> brutto send 882109 bytes ( 16643 bytes/connect)
> netto read 6526244 bytes ( 123136 bytes/connect)
> netto send 132519 bytes ( 2500 bytes/connect)
>
> ø brutto speed 236 cps ( 243 cps peak)
> ø netto speed 187 cps ( 200 cps peak)
> ø brutto cost 9.301 DM/MB
> ø netto cost 11.699 DM/MB
connects
--------
Number of connects.
online time
-----------
Total online time, and average online time per connect.
units
-----
Phone units consumed, and average phone units consumed per connect.
Note: in Germany, a "phone unit" is an indivisible time quantum
(sounds like quantum physics :-). This means even if your connect
is shorter than that, the phone company still charges for the entire
time quantum. Example: unit duration is 60 seconds, connect time was
97 seconds, phone company charges two units (120 seconds).
You can influence the unit duration by editing the XStat.data file;
the <duration> in the "C"-lines tells XStat the unit duration.
cost
----
Total cost, and average cost per connect.
brutto read
-----------
Total bytes read (including protocol information), and average (per connect).
brutto send
-----------
Total bytes sent (including protocol information), and average (per connect).
netto read
----------
Total bytes read (excluding protocol information), and average (per connect).
netto send
----------
Total bytes sent (excluding protocol information), and average (per connect).
ø brutto speed
--------------
Average transmission speed, including protocol overhead, and speed of
fastest connect.
ø netto speed
-------------
Average transmission speed, excluding protocol overhead, and speed of
fastest connect.
ø brutto cost
-------------
Average cost per MByte, including protocol overhead.
ø netto cost
------------
Average cost per MByte, excluding protocol overhead.
History
=======
V1.07 list of connection statistics was not sorted correctly. Fixed.
V1.06 extended "hostname" to include pattern matching and "per host" feature
V1.05 added "per host" statistics
V1.04 fixed a bug (problem with locale), switched to dos.library "ReadArgs()"
V1.03 added monthly statistics.
V1.02 added peak brutto/netto cps rating.
V1.01 XStat used to guru when brutto or netto xfer was 0 bytes. Fixed.
V1.00 initial release.
V0.9x several test/beta versions, limited circulation
Known problems/bugs
===================
None so far...
Well, actually, there's one problem I can't do anything about... the
online time is not very accurate. That's because the connection start
time seems to state the time the modem says "CONNECT", not the real
start time of the (phone line) connection.
You can contact me through the Usenet:
uunet.uu.net!cbmvax!cbmehq!cbmger!imart!hcast!jow
(Sorry, still no domain address)
Or through the snail mail:
Jürgen Weinelt
Zur Kanzel 1
D-8783 Hammelburg
Germany
You might also try posting to comp.sys.amiga.programmer or alt.sys.amiga.uucp,
I'll probably read those newsgroups.